1.

  • 2.token

    (1)

    (2)

    Token
    POST
    http://10.62.163.111:8882/v1/Oauth/token

    :
    :
    client_idstringYNo1sX01PbbnLw
    client_secretstringY2394fb0d9faa24b72902443831667d0d
    grant_typestringYclient_credentials
    :
    {
     "client_id": "No1sX01PbbnLw",
     "client_secret": "2394fb0d9faa24b72902443831667d0d",
     "grant_type": "client_credentials"
    }
    :
    codeinteger0
    msgstringsuccess
    tokenstring93f3f23557c6c25d76bffead16c82aebbb3d77ee104b507e38919695897a2531
    expires_ininteger5224
    refresh_tokenstring9e5bb4dff226e4d656d3467ca4eb882fe3379d00d5cea77c35c5aabf79d8b56d
    :
    {
     "code": 0,
     "msg": "success",
     "token": "93f3f23557c6c25d76bffead16c82aebbb3d77ee104b507e38919695897a2531",
     "expires_in": 5224,
     "refresh_token": "9e5bb4dff226e4d656d3467ca4eb882fe3379d00d5cea77c35c5aabf79d8b56d"
    }

    3.

    POST
    http://10.62.163.111:8882/v1/Oauth/token

    :
    :
    refresh_tokenstringYrefresh_token 12943601459cc83edfadddc1d65d258b7f8c9adeadf10
    grant_typestringY refresh_tokenrefresh_token
    :
    {
      "refresh_token": "12943601459cc83edfadddc1d65d258b7f8c9adeadf10",
      "grant_type": "refresh_token"
    }
    :
    access_tokenstringeyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9
    expires_inint7200
    refresh_tokenstring12943601459cc83edfadddc1d65d258b7f8c9adeadf10
    :
    {
      "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9",
      "expires_in": "7200",
      "refresh_token": "12943601459cc83edfadddc1d65d258b7f8c9adeadf10"
    }

    4.

    :
    GET、POST、PUT、PATCH、DELETE。
    :
    Request Header:
    Content-Type String Y application/json MIME Content Type.
    Authorization String Y Bearer <token> Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9

    5.

    PHP v1.01 2019-08-16
    Java v1.01 2019-08-16
    Python v1.01 2019-08-16
    C# v1.01 2019-08-16

    6.

    http://api.demo.wareconn.com/

  • 工站作业